using namespace std;
#include <iostream>

template <class K, class D>
class Record
{
public:
    Record(K kx, D dx) { key = kx; data = dx; }
    K GetKey() { return key; }
    D GetData() { return data; }
private:
    K key;
    D data;
};

int
main(int argc, char *argv[])
{
    Record<int, string> rec(10, "test");

    cout << "Record<int, char *> rec(10, \"test\");" << endl;
    cout << "Key : " << rec.GetKey() << endl;
    cout << "Data: " << rec.GetData() << endl;

    return 0;
}

